package com.netty.product.impl;

import java.util.HashMap;
import java.util.Map;

import com.netty.common.bean.product.Product;
import com.netty.common.core.annotion.RpcService;
import com.netty.product.ProductService;

@RpcService(ProductService.class)
public class ProductServiceImpl implements ProductService{

	@Override
	public Product getProduct(int productid) {
		System.out.println("请求参数："+productid);
		Product product = new Product();
		product.setId(productid);
		product.setName("衣服");
		Map<String, Object> arrt = new HashMap<String, Object>();
		arrt.put("颜色", "白色");
		arrt.put("尺寸", "L");
		product.setArrt(arrt);
		return product;
	}

}
